package m.html.form;

public enum FormMode {
    //正常模式，行模式，描述模式
    NORMAL,ROW,DESC;
    public static FormMode to(String mode){
        if(null==mode) return NORMAL;
        switch (mode){
            case "NORMAL":return NORMAL;
            case "ROW":return ROW;
            case "DESC":return DESC;
        }
        return NORMAL;
    }
}
